package com.swiot.biz.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.swiot.common.annotation.Excel;
import com.swiot.common.core.domain.BaseEntity;

/**
 * 规则明细对象 biz_rule_detail
 * 
 * @author kingdom
 * @date 2025-08-25
 */
public class RuleDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 规则ID */
    @Excel(name = "规则ID")
    private String ruleId;

    /** 比较条件（=） */
    @Excel(name = "比较条件", readConverterExp = "==")
    private String compareCondition;

    /** 比较范围(绝对值、范围值） */
    @Excel(name = "比较范围(绝对值、范围值）")
    private String compareRange;

    /** 比较类型（字符、数字） */
    @Excel(name = "比较类型", readConverterExp = "字=符、数字")
    private String compareType;

    /** 数据域 */
    @Excel(name = "数据域")
    private String data;

    /** 最小数据 */
    @Excel(name = "最小数据")
    private String dataMin;

    /** 最大数据 */
    @Excel(name = "最大数据")
    private String dataMax;

    /** 执行操作 */
    @Excel(name = "执行操作")
    private String executionAction;

    /** 执行数据 */
    @Excel(name = "执行数据")
    private String executionData;

    /** 优先级 */
    @Excel(name = "优先级")
    private String sort;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 创建时间 */
    private Date createdTime;

    /** 更新时间 */
    private Date updatedTime;

    /** 删除时间 */
    private Date deletedTime;

    /** 创建人用户ID */
    private String createdById;

    /** 最后更新人用户ID */
    private String updatedById;

    /** 创建人 */
    private String createdBy;

    /** 最后更新人 */
    private String updatedBy;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setRuleId(String ruleId) 
    {
        this.ruleId = ruleId;
    }

    public String getRuleId() 
    {
        return ruleId;
    }
    public void setCompareCondition(String compareCondition) 
    {
        this.compareCondition = compareCondition;
    }

    public String getCompareCondition() 
    {
        return compareCondition;
    }
    public void setCompareRange(String compareRange) 
    {
        this.compareRange = compareRange;
    }

    public String getCompareRange() 
    {
        return compareRange;
    }
    public void setCompareType(String compareType) 
    {
        this.compareType = compareType;
    }

    public String getCompareType() 
    {
        return compareType;
    }
    public void setData(String data) 
    {
        this.data = data;
    }

    public String getData() 
    {
        return data;
    }
    public void setDataMin(String dataMin) 
    {
        this.dataMin = dataMin;
    }

    public String getDataMin() 
    {
        return dataMin;
    }
    public void setDataMax(String dataMax) 
    {
        this.dataMax = dataMax;
    }

    public String getDataMax() 
    {
        return dataMax;
    }
    public void setExecutionAction(String executionAction) 
    {
        this.executionAction = executionAction;
    }

    public String getExecutionAction() 
    {
        return executionAction;
    }
    public void setExecutionData(String executionData) 
    {
        this.executionData = executionData;
    }

    public String getExecutionData() 
    {
        return executionData;
    }
    public void setSort(String sort) 
    {
        this.sort = sort;
    }

    public String getSort() 
    {
        return sort;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }
    public void setDeletedTime(Date deletedTime) 
    {
        this.deletedTime = deletedTime;
    }

    public Date getDeletedTime() 
    {
        return deletedTime;
    }
    public void setCreatedById(String createdById) 
    {
        this.createdById = createdById;
    }

    public String getCreatedById() 
    {
        return createdById;
    }
    public void setUpdatedById(String updatedById) 
    {
        this.updatedById = updatedById;
    }

    public String getUpdatedById() 
    {
        return updatedById;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ruleId", getRuleId())
            .append("compareCondition", getCompareCondition())
            .append("compareRange", getCompareRange())
            .append("compareType", getCompareType())
            .append("data", getData())
            .append("dataMin", getDataMin())
            .append("dataMax", getDataMax())
            .append("executionAction", getExecutionAction())
            .append("executionData", getExecutionData())
            .append("sort", getSort())
            .append("delFlag", getDelFlag())
            .append("createdTime", getCreatedTime())
            .append("updatedTime", getUpdatedTime())
            .append("deletedTime", getDeletedTime())
            .append("createdById", getCreatedById())
            .append("updatedById", getUpdatedById())
            .append("createdBy", getCreatedBy())
            .append("updatedBy", getUpdatedBy())
            .toString();
    }
}
